package com.party.controller;

import com.party.model.News;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-20
 * Time: 上午11:40
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/loginReg")
public class LoginRegController {

    /**
     * login
     * @return
     */
    @RequestMapping(value = "login")
    public ModelAndView login() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("login");
        return modelAndView;
    }

    /**
     * login
     * @return
     */
    @RequestMapping(value = "reg")
    public ModelAndView reg() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("reg");
        return modelAndView;
    }
}
